﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
    include("handle/config.php");
	session_start();
	ob_start();
?>
<title>Liên chi</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />
    
<link rel="stylesheet" href="styles/layout.css" type="text/css" />
<script type="text/javascript" src="js template/jquery-1.11.0.js"></script>
<!--<script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>-->
<script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="scripts/jquery.timers.1.2.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.2.1.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.setup.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview-3.0-dev.js"></script>
<link type="text/css" rel="stylesheet" href="styles/jquery.galleryview-3.0-dev.css" />

<link type="text/css" href="css template/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<!-- custom link -->

</head>
<body id="top">
<!-- ####################################################################################################### -->
<!--#include virtual=".html" -->
	<?php include("header.html"); ?>
	<?php include("php sources/TinTucSuKien.php");?>
<!-- ####################################################################################################### -->
	<div class="body">
		<div class="middle">
			<div class="wrapper">
			  <div class="container">
				<div class="content">
				  <div id="featured_slide">
					<ul id="featurednews">
					<?php
						$ttsk=array();
						$ttsk=TTSK::GetTinTucSuKien(11,'Liên Chi');
						for($i=0;$i<5;$i++)
							  echo '<li><img src="'.$ttsk[$i]->anhbia.'" alt="" />
								<div class="panel-overlay">
								  <h2 style="color:#5A92FA">'.substr($ttsk[$i]->tieude,0,70).'</h2>
								  <p ><div class="noidung" style="height:20px;overflow:hidden;">'.substr($ttsk[$i]->noidung,0,200).'</div></br>
									<a style="position:absolute;bottom:0px;" href="TinTuc_SuKien.php?content=xemtin&matt='.$ttsk[$i]->mattsk.'">Đọc  tiếp &raquo;</a></p>
								</div>
							  </li>';
					 ?>
					</ul>
				  </div>
				</div>
				
				<div class="column">
				  <ul class="latestnews">
					  <ul class="latestnews">
						<?php
							for($i=5;$i<8;$i++)
							echo '<li><img style="width:100px;height:100px" src="'.$ttsk[$i]->anhbia.'" alt="" />
						  <p><strong><a href="TinTuc_SuKien.php?content=xemtin&matt='.$ttsk[$i]->mattsk.'">'. substr($ttsk[$i]->tieude,0,150).'</a></br></strong><div class="noidung" > '.substr($ttsk[$i]->noidung,0,150).'</div></p>
						</li>';
						?>
						</ul>
				  </ul>
				</div>
				<br class="clear" />
			  </div>
			</div>
			<!-- ####################################################################################################### -->
			<div class="wrapper">
			  <div id="adblock">
				<div class="fl_left"><a href="#"><img class='advertise' src="images/advertise1.jpg" alt="" /></a></div>
				<div class="fl_right"><a href="#"><img  class='advertise' src="images/advertise2.jpg" alt="" /></a></div>
				<br class="clear" />
			  </div>
			  <div id="hpage_cats">
				<div class="fl_left">
				  <h2><a href="TinTuc_SuKien.php?content=xemdstt&theloai=TL02">Kỹ năng sống &raquo;</a></h2>
					  <?php  
						$kns=array();
						$kns=TTSK::GetTinTucSuKienTheoTL(1,"Kỹ năng sống",'Liên Chi');
					  ?>
				  <img class="caption_image" src=<?php echo $kns[0]->anhbia; ?> alt="" />
				  <p><strong><a href=<?php echo 'TinTuc_SuKien.php?content=xemtin&matt='.$kns[0]->mattsk; ?>> <?php echo substr($kns[0]->tieude,0,150); ?></a></strong></p>
				  <div class='noidung'><p><?php echo substr($kns[0]->noidung,0,250); ?></p></div>
				</div>
				<div class="fl_right">
				  <h2><a href="TinTuc_SuKien.php?content=xemdstt&theloai=TL03">Hoạt động &raquo;</a></h2>
				  <?php  
						$hd=array();
						$hd=TTSK::GetTinTucSuKienTheoTL(1,"Hoạt động",'Liên Chi');
					  ?>
				  <img class="caption_image" src=<?php echo $hd[0]->anhbia; ?> alt="" />
				  <p><strong><a href=<?php echo 'TinTuc_SuKien.php?content=xemtin&matt='.$hd[0]->mattsk; ?>> <?php echo substr($hd[0]->tieude,0,150); ?></a></strong></p>
				  <div class='noidung'><p ><?php echo substr($hd[0]->noidung,0,200); ?></p></div>
				</div>
				<br class="clear" />
				<div class="fl_left">
				  <h2><a href="TinTuc_SuKien.php?content=xemdstt&theloai=TL04">Học tập &raquo;</a></h2>
				  <?php  
						$ht=array();
						$ht=TTSK::GetTinTucSuKienTheoTL(1,"Học tập",'Liên Chi');
					  ?>
				  <img class="caption_image" src=<?php echo $ht[0]->anhbia; ?> alt="" />
				  <p><strong><a href=<?php echo 'TinTuc_SuKien.php?content=xemtin&matt='.$ht[0]->mattsk; ?>> <?php echo substr($ht[0]->tieude,0,150); ?></a></strong></p>
				  <div class='noidung'><p><?php echo substr($ht[0]->noidung,0,200); ?></p></div>
				</div>
				<div class="fl_right">
				  <h2><a href="TinTuc_SuKien.php?content=xemdstt&theloai=TL05">Giải trí &raquo;</a></h2>
				  <?php  
						$gt=array();
						$gt=TTSK::GetTinTucSuKienTheoTL(1,"Giải trí",'Liên Chi');
					  ?>
				  <img class="caption_image" src=<?php echo $gt[0]->anhbia; ?> alt="" />
				  <p><strong><a href=<?php echo 'TinTuc_SuKien.php?content=xemtin&matt='.$gt[0]->mattsk; ?> > <?php echo substr($gt[0]->tieude,0,150); ?></a></strong></p>
				  <div class='noidung'><p><?php echo substr($gt[0]->noidung,0,200); ?></p></div>
				</div>
				<br class="clear" />
			  </div>
			</div>
			<!-- ####################################################################################################### -->
			<div class="wrapper">
			  <div class="container">
				<div class="content">
				  <div   id="hpage_latest" style="width:650px;" >
					<h2>Các tin trước</h2>
					<ul>
					  <?php 
						 for($i=8;$i<11;$i++)
						  echo '<li style="width:200px;height:300px;"><img style="width:190px;height:130px;display:inline"  src="'.$ttsk[$i]->anhbia.'" alt="" />
							<p><div style="height:20px;overflow:hidden">'.substr($ttsk[$i]->tieude,0,50).'</div></p>
							<p><div class="noidung" style="height:60px;overflow:hidden">'.substr($ttsk[$i]->noidung,0,200) .'</div></p>
							<p><a href="TinTuc_SuKien.php?content=xemtin&matt='.$ttsk[$i]->mattsk.'">Đọc tiếp &raquo;</a></p>
						  </li>';
						  ?>
					</ul>
					<br class="clear" />
				  </div>
				</div>
				<div class="column">
				  <div class="holder" ><a href="http://www.ctu.edu.vn/"><img id='ctu' src="images/dhct.jpg" alt="" /></a></div>
				  <div class="holder"><a href="http://websrv2.ctu.edu.vn/dept/dpa/"><img id='pctsv' src="images/pctsv.gif" alt="" /></a></div>
				</div>
				<br class="clear" />
			  </div>
			</div>
			<!-- ####################################################################################################### -->
			<!-- ####################################################################################################### -->
			<div class="wrapper">
			  <div id="socialise">
				<ul>
				  <li  style='width:150px'><a href="http://www.cit.ctu.edu.vn/"><img id='cntt' src="images/cict.jpg" alt="" /><span>CNTT&TT DHCT</span></a></li>
				  <li><a href="http://yu.ctu.edu.vn/"><img id='hsvdhct'src="images/studentunion.gif" alt="" /><span>Hội sinh viên DHCT</span></a></li>
				  <li class="last"><a href="http://www.lrc.ctu.edu.vn/"><img id='tthl' src="images/tthl.jpg" alt="" /><span>Trung tâm học liệu DHCT</span></a></li>
				</ul>
				
				<br class="clear" />
			  </div>
			</div>
			<!-- ####################################################################################################### -->
			<div class="wrapper col8">
			  <div id="copyright">
				<p class="fl_left">Hội Sinh Viên Trường Đại học Cần Thơ</p>
				<p class="fl_right"> Coppyright by Mai Hữu Lợi &copy; 2014 - Mọi thắc mắc liên hệ facebook:<a href='https://www.facebook.com/loi.huu.75'>Kenvin Mai</a></p>
				<br class="clear" />
			  </div>
			</div>
		</div>
	</div>
</body>
</html>
